<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var fun1=function(){
				alert(location.href);
			}
			
			var fun2=function(){
				location.href="https://www.pzhu.cn";
			}
		</script>
	</head>
	<body>
		<button type="button" onclick="fun1()">获取当前URL</button>
		<button type="button" onclick="fun2()">跳转到攀枝花学院</button>
	</body>
</html>
